<template>
<div class="sidebox">
  <h2>热卖旅游</h2>
  <div class="content">
    <div v-for="(item ,index) in list" class="item" :key="index">
      <img :src="item.image" />
      <p>{{ item.title }}</p>
    </div>
  </div>
</div>
</template>

<script>
export default {
  data() {
    return {
      list: [
        {
          image: require('../../assets/images/tour1.jpg'),
          title: '巴厘岛1日游'
        },
        {
          image: require('../../assets/images/tour2.jpg'),
          title: '巴厘岛1日游'
        },
        {
          image: require('../../assets/images/tour3.jpg'),
          title: '巴厘岛1日游'
        },
        {
          image: require('../../assets/images/tour4.jpg'),
          title: '巴厘岛1日游'
        },
        {
          image: require('../../assets/images/tour5.jpg'),
          title: '巴厘岛1日游'
        },
        {
          image: require('../../assets/images/tour6.jpg'),
          title: '巴厘岛1日游'
        },
        {
          image: require('../../assets/images/tour7.jpg'),
          title: '巴厘岛1日游'
        },
        {
          image: require('../../assets/images/tour8.jpg'),
          title: '巴厘岛1日游'
        },
        {
          image: require('../../assets/images/tour9.jpg'),
          title: '巴厘岛1日游'
        },
        {
          image: require('../../assets/images/tour10.jpg'),
          title: '巴厘岛1日游'
        },
      ]
    }
  }
}
</script>
<style lang="scss" scoped>
.sidebox {
  margin-top: 60px;
  width:342px;
	border-top: 3px solid #eee;
	text-align: center;

  h2 {
    font-size: 20px;
    font-weight: normal;
    text-indent: 8px;
    letter-spacing: 1px;
    height:40px;
    line-height: 40px;
    background-color: #fafafa;
    color:#666;
  }
  .content {
    // display: flex;
    width: 340px;
    border: 1px solid #eee;
    border-top: none;

    .item {
      margin-top: 5px;
      display: inline-block;
      margin-right: 10px;
      img {
        height: 90px;
      }
      p {
        font-size: 12px;
      }
    }
  }

}
</style>
